package shangji1;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入第一个数字");
        double num1 = scanner.nextDouble();

        System.out.println("请输入运算符");
        String ysf = scanner.next();

        System.out.println("请输入第一个数字");
        double num2 = scanner.nextDouble();

        Operator operator = Factory.getOperator(ysf);
        System.out.println(operator.getRator(num1,num2));

    }

}
